package com.hhxyjsj.prototype;

/**
 * 文件拷贝
 * @author hhxyj
 *
 */
public class File implements Cloneable{
	
	private String name;
	private String content;
	
	public File(String name,String content){
		this.name = name;
		this.content = content;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public File copy(){
		try {
			return (File) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return null;
	}
}
